﻿using DevComponents.DotNetBar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WorkStation.Common;

namespace WorkStation.UI
{
    public partial class FormGRR : Office2007Form
    {
        public FormGRR()
        {
            InitializeComponent();
            this.EnableGlass = false;
        }

        private void btn_Search_Click(object sender, EventArgs e)
        {
            //GlobalVariable.GrrTotalCountSingle = Convert.ToInt32(nUD_Count.Value);
            GlobalVariable.TesterNo2GrrTimesSingle = new Dictionary<int, int>();
            GlobalVariable.TesterNo2GrrTimesSingle.Add(0, Convert.ToInt32(nUD_TimesTester1.Value));
            GlobalVariable.TesterNo2GrrTimesSingle.Add(1, Convert.ToInt32(nUD_TimesTester2.Value));
            GlobalVariable.TesterNo2GrrTimesSingle.Add(2, Convert.ToInt32(nUD_TimesTester3.Value));
            //GlobalVariable.GrrTotalTimesSingle = Convert.ToInt32(nUD_TimesTester1.Value);
            GlobalVariable.GrrDelayTime = Convert.ToInt32(nUD_Delay.Value);
            GlobalVariable.IsBGrr = rB_B.Checked;
            this.Close();
        }

        private void rB_B_CheckedChanged(object sender, EventArgs e)
        {
            
        }

        private void rB_A_CheckedChanged(object sender, EventArgs e)
        {
           
        }

        private void FormGRR_Load(object sender, EventArgs e)
        {
            //nUD_Count.Value = GlobalVariable.GrrTotalCountSingle;
            //nUD_TimesTester1.Value = GlobalVariable.GrrTotalTimesSingle;
            nUD_Delay.Value = GlobalVariable.GrrDelayTime;
            rB_B.Checked = GlobalVariable.IsBGrr;
        }
    }
}
